.carousel {
    position: relative;
    cursor: pointer;
}
.carousel:hover .prev, .carousel:hover .next {
    opacity: 1;
}
.container {
    overflow: hidden;
}
.item {
    white-space: nowrap;
}
.item > div {
    display: inline-block;
    width: 100%;
}
.item img {
    display: block;
    width: 100%;
    max-width: 100%;
}
.prev, .next {
    opacity: 0;
    transition: opacity .3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ddd;
    width: 30px;
    background: rgba(0, 0, 0, .4);
    height: 30px;
    text-align: center;
    border-radius: 50%;
    line-height: 30px;
    padding: 4px;
}
.prev:hover, .next:hover {
    color: #fff;
    background: rgba(0, 0, 0, .6);
}
.prev {
    left: 10px;
}
.prev .arrow {
    transform: rotate(90deg);
}
.next {
    right: 10px;
}
.next .arrow {
    transform: rotate(-90deg);
}
.contarol {
    display: flex;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}
.contarol .icon {
    width: 18px;
    height: 4px;
    background-color: #fff;
    opacity: .3;
    transition: all .3s;
    border-radius: 999px;
}
.contarol .icon:hover {
    opacity: .75;
}
.contarol .icon + .icon {
    margin-left: 8px;
}
.contarol .icon.active {
    width: 24px;
    opacity: 1;
}